// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

import 'normalize.css/normalize.css' //实现跨浏览器的高度兼容
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/index.scss' //全局CSS样式

import App from './App'
import router from './router'
import store from './store'

import './icons' // 图标
import './errorLog' // 错误日志
import './permission' // 权限检查
import './mock' // 模拟数据

import * as filters from './filters' // global filters

Vue.config.productionTip = false

Vue.use(Element, { size: 'medium' });

// register global utility filters.
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
})

new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
})